lib/repo-finder: Add basic support for finding remote URIs by ref name
authorPhilip Withnall <withnall@endlessm.com>
Tue, 18 Apr 2017 22:59:33 +0000 (23:59 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Jun 2017 15:56:07 +0000 (15:56 +0000)
commit292230301dde3c774325d50b5ed95d37b1c1d217
tree4dd24ec70b0face61d9381d8eb78715b713d7d1a
parent7607d94713539e748a89656c9a85cbe04186b281
lib/repo-finder: Add basic support for finding remote URIs by ref name

Add an initial OstreeRepoFinder interface (but no implementations),
which will find remote URIs by ref names and collection IDs, the
combination of which is globally unique.

The new API is used in a new ostree_repo_find_updates() function, which
resolves a list of ref names to update into a set of remote URIs to pull
them from, which can be treated as mirrors. It is an attempt to
generalise resolution of the URIs to pull from, and to generalise
determination of the order and parallelisation which they should be
downloaded from in.

Includes fixes by Krzesimir Nowak <krzesimir@kinvolk.io>.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #924
Approved by: cgwalters
Makefile-libostree-defines.am
Makefile-libostree.am
apidoc/ostree-experimental-sections.txt
src/libostree/libostree-experimental.sym
src/libostree/ostree-autocleanups.h
src/libostree/ostree-core-private.h
src/libostree/ostree-repo-finder.c [new file with mode: 0644]
src/libostree/ostree-repo-finder.h [new file with mode: 0644]
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.h
src/libostree/ostree.h